package items;

import shared.Timer;

public abstract class Weapon extends Item {
	private int attackDamage;
	private int attackSpeed;
	private Timer attackTimer;
	
	public Weapon(int id, int x, int y, int w, int h) {
		super(id, x, y, w, h);
		
		setType("weapon");
		attackDamage = 20;
		attackSpeed = 2;
		attackTimer = new Timer(1.0 / (double)attackSpeed);
	}

	public int getAttackDamage() {
		return attackDamage;
	}

	public void setAttackDamage(int attackDamage) {
		this.attackDamage = attackDamage;
	}

	public int getAttackSpeed() {
		return attackSpeed;
	}

	public void setAttackSpeed(int attackSpeed) {
		this.attackSpeed = attackSpeed;
	}

	public Timer getAttackTimer() {
		return attackTimer;
	}

	public void setAttackTimer(Timer attackTimer) {
		this.attackTimer = attackTimer;
	}

}
